// 自动生成模板CustomProcessBaseMachineRel
package model

import (
	"gin-vue-admin/global"
)

// 如果含有time.Time 请自行import time包
type CustomProcessBaseMachineRel struct {
      global.GVA_MODEL
      BaseId  int `json:"baseId" form:"baseId" gorm:"column:base_id;comment:;type:bigint;size:20;"`
      MachineId  int `json:"machineId" form:"machineId" gorm:"column:machine_id;comment:;type:bigint;size:20;"`
}


func (CustomProcessBaseMachineRel) TableName() string {
  return "custom_process_base_machine_rel"
}


// 如果使用工作流功能 需要打开下方注释 并到initialize的workflow中进行注册 且必须指定TableName
// type CustomProcessBaseMachineRelWorkflow struct {
// 	// 工作流操作结构体
// 	WorkflowBase      `json:"wf"`
// 	CustomProcessBaseMachineRel   `json:"business"`
// }

// func (CustomProcessBaseMachineRel) TableName() string {
// 	return "custom_process_base_machine_rel"
// }

// 工作流注册代码

// initWorkflowModel内部注册
// model.WorkflowBusinessStruct["customProcessBaseMachineRel"] = func() model.GVA_Workflow {
//   return new(model.CustomProcessBaseMachineRelWorkflow)
// }

// initWorkflowTable内部注册
// model.WorkflowBusinessTable["customProcessBaseMachineRel"] = func() interface{} {
// 	return new(model.CustomProcessBaseMachineRel)
// }
